package com.tfswx.fljdmxyy.dto.sjgl;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * 业务实体字段添加输入dto
 *
 * @Author 陈文佳
 * @Date 2023/03/24
 */
@Data
public class YwstzdAddInputDTO {

    @ApiModelProperty(value = "实体信息")
    private List<Stxx> stxx;


    @Data
    public static class Stxx {
        @NotBlank(message = "stbm-不能为空")
        @ApiModelProperty(name = "stbm", value = "实体表名", required = true)
        private String stbm;

        @NotBlank(message = "xsmc-不能为空")
        @ApiModelProperty(name = "xsmc", value = "显示名称", required = true)
        private String xsmc;

        @ApiModelProperty(value = "字段信息")
        private List<Zdxx> zdxx;
    }

    @Data
    public static class Zdxx {
        @ApiModelProperty(name = "zdmc", value = "字段名称")
        private String zdmc;

        @ApiModelProperty(name = "xsmc", value = "显示名称")
        private String xsmc;

        @ApiModelProperty(name = "zdlx", value = "字段类型")
        private String zdlx;

        @ApiModelProperty(name = "xh", value = "序号")
        private Integer xh;

        @ApiModelProperty(name = "zdsjy", value = "字段数据源")
        private String zdsjy;
    }
}
